<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pro_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-pro_id" data-rule="required" data-source="pro/index" class="form-control selectpage" name="row[pro_id]" type="text" value="{$row.pro_id|htmlentities}"> -->
            <select id="c-lev_id" data-rule="required" required class="form-control selectpicker" name="row[pro_id]">
                <option value="">请选择等级</option>
                {foreach name="proArr" item="vo" key="key"}
                <option value="{$vo['id']}" {in name="vo.id" value="$row.pro_id"} selected {/in} >{$vo['name']}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mini')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mini" class="form-control" step="0.001" name="row[mini]" type="number" value="{$row.mini|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Maxi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-maxi" class="form-control" step="0.001" name="row[maxi]" type="number" value="{$row.maxi|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Typs')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-typs" class="form-control selectpicker" name="row[typs]">
                {foreach name="typsList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.typs"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="stateList" item="vo"}
                <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state"}checked{/in} /> {$vo}</label> {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">生效时间:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-is_take" data-rule="required" class="form-control selectpicker" name="row[is_take]">
                    <option value="0">请选择</option>
                    <option value="1" {if $row.is_take == 1} selected {/if}>T+0</option>
                    <option value="2" {if $row.is_take == 2} selected {/if}>D+1</option>
                    <option value="3" {if $row.is_take == 3} selected {/if}>立即生效</option>
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Modify_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-modify_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[modify_time]" type="text" value="{:$row.modify_time?datetime($row.modify_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>